import request from '@/utils/request'
import { remoteRequest } from '@/utils/remote.js'

// 查询字典项
export function getDict(dictCode) {
  return remoteRequest('getDict', dictCode, () => {
    return request({
      url: '/base/dicts/getValidDictItemsByDictCode',
      method: 'get',
      params: {
        dictCode
      }
    })
  })
}
